package com.github.zhp.web.handler;

import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;

public class HelloHandler implements Handler<RoutingContext> {
    @Override
    public void handle(RoutingContext request) {
        // 获取到response对象
        //            HttpServerResponse response = request.response();
        // 设置响应头
//            response.putHeader("Content-type", "text/html;charset=utf-8");
        // 响应数据
//            response.end("Hello World");
        request.response().end("INDEX SUCCESS");
    }
}
